package com.lzhsite.technology.designPattern.command.CalculatorDemo;

public class Operation implements IOperation
{
    private int result;

    public int getResult()
    {
        return result;
    }

    public void setResult(int result)
    {
        this.result = result;
    }

    public void add(int number)
    {
        result += number;
    }

    public void subtract(int number)
    {
        result -= number;
    }
}
